package com.qf.advice;

import org.aopalliance.intercept.MethodInterceptor;
import org.aopalliance.intercept.MethodInvocation;

/**
 * @ClassName testAroundAdvice
 * @Author xiao宋
 * @Date 21:21  2022/9/27
 * @Version 1.0
 * @Description TODO
 */
public class testAroundAdvice implements MethodInterceptor {
    public Object invoke(MethodInvocation invocation) throws Throwable {


        try {
            System.out.println("前置");
            invocation.proceed();
            System.out.println("hou置");

        } catch (Exception e) {
            e.printStackTrace();
            System.out.println("出错了，报错");
        } finally {
            System.out.println("finally");
        }
        return  null;
    }

}
